from selenium.webdriver.common.by import By

from Base.Base import Base
# 登录定位
class Page(Base):
    login_loc=(By.XPATH,'/html/body/div/div/section/aside/ul/li/ul/li[4]/a')
    def login(self):
        self.click(self.login_loc)
    username_loc=(By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def username(self,username):
        self.send_keys(self.username_loc,username)
    password_loc=(By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def password(self,password):
        self.send_keys(self.password_loc,password)
    denglu_loc=(By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/button[2]/span')
    def denglu(self):
        self.click(self.denglu_loc)

